package com.spboot.entity;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 
 * </p>
 *
 * @author guocb
 * @since 2021-03-25
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("smbms_bill")
public class Bill implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 账单编码
     */
    private String billCode;

    /**
     * 商品名称
     */
    private String productName;

    /**
     * 商品描述
     */
    private String productDesc;

    /**
     * 商品单位
     */
    private String productUnit;

    /**
     * 商品数量
     */
    private BigDecimal productCount;

    /**
     * 商品总额
     */
    private BigDecimal totalPrice;

    /**
     * 是否支付（1：未支付 2：已支付）
     */
    private Integer isPayment;

    /**
     * 创建者（userId）
     */
    private Long createdBy;

    /**
     * 创建时间
     */
    private LocalDateTime creationDate;

    /**
     * 更新者（userId）
     */
    private Long modifyBy;

    /**
     * 更新时间
     */
    private LocalDateTime modifyDate;

    /**
     * 供应商ID
     */
    private Long providerId;


    public static final String ID = "id";

    public static final String BILLCODE = "billCode";

    public static final String PRODUCTNAME = "productName";

    public static final String PRODUCTDESC = "productDesc";

    public static final String PRODUCTUNIT = "productUnit";

    public static final String PRODUCTCOUNT = "productCount";

    public static final String TOTALPRICE = "totalPrice";

    public static final String ISPAYMENT = "isPayment";

    public static final String CREATEDBY = "createdBy";

    public static final String CREATIONDATE = "creationDate";

    public static final String MODIFYBY = "modifyBy";

    public static final String MODIFYDATE = "modifyDate";

    public static final String PROVIDERID = "providerId";

}
